package org.fxml.utils {

	/**
	 * @author jdoczy
	 */
	public class DelegateUtil {
		
		protected var _delegate:*;
		protected var _params:Array;
		
		public function get delegate():*{
			return _delegate;
		}
			
		public function set delegate(value:*):void{
			_delegate=value;
		}
		
		public function get params():Array{
			return _params || [];
		}
		
		public function set params(value:Array):void{
			_params = value;
		}
		
		public function get result():*{
			return delegate.apply(null, params);
		}
		
	}
}
